import { request } from '../request'
import { systemAPI } from '../api'

// 用户登录
export function $_login(data) {
  return request({
    url: systemAPI.login,
    isAuthorization: false,
    method: 'POST',
    data
  })
}
// 文件上传
export function $_upload(data) {
  return request({
    headers: {
      'Content-Type': 'multipart/form-data; boundary=----WebKitFormBoundaryjXBwVBYFRbQkB8y9'
    },
    url: systemAPI.upload,
    isAuthorization: false,
    method: 'POST',
    data
  })
}
